package cn.gs.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.gs.dao.SelectCustomerDao;
import cn.gs.dao.SelectCustomerImpl;
import cn.gs.domain.Customer;


@Service(value="selectCustomerService")
@Scope("prototype")
public class SelectCustomerServiceImpl implements SelectCustomerService {

	@Resource(name="selectCustomerDao")
	SelectCustomerDao selectCustomerDao;
	public void setCustomerDao(SelectCustomerDao selectCustomerDao) {
		this.selectCustomerDao = selectCustomerDao;
	}
	
	
	public List<Customer> selectCustomer(String cust_name, String cust_linkman, int page) {
		
		
		System.out.println("经过Service");
		List<Customer> list=selectCustomerDao.selectCustomer(cust_name, cust_linkman, page); 
		return list;
	}


	public List<Customer> selectPageCount(String cust_name, String cust_linkman) {
		SelectCustomerDao selectCustomerDao1=new SelectCustomerImpl();
		List<Customer> list= selectCustomerDao1.selectPageCount(cust_name, cust_linkman);
		return list;
	}

}
